/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦]
 * 
 * https://zhiqim.org/project/zhiqim_framework/zhiqim_orm.htm
 *
 * Zhiqim Orm is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package org.zhiqim.orm.test.qc.dbo;

import java.io.Serializable;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 问答评论表 对应表《QC_COMMENT》
 */
@AnAlias("QcComment")
@AnNew
@AnTable(table="QC_COMMENT", key="QUESTION_ID,COMMENT_ID", type="InnoDB")
public class QcComment implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableField(column="QUESTION_ID", type="long", notNull=true)    private long questionId;    //1.问题编号
    @AnTableField(column="COMMENT_ID", type="long", notNull=true)    private long commentId;    //2.评论编号
    @AnTableField(column="COMMENT_CONTENT", type="string,4000", notNull=true)    private String commentContent;    //3.评论内容
    @AnTableField(column="COMMENT_USER_ID", type="long", notNull=true)    private long commentUserId;    //4.评论作者编号
    @AnTableField(column="COMMENT_GOOD_NUM", type="int", notNull=true)    private int commentGoodNum;    //5.点赞数
    @AnTableField(column="COMMENT_CREATE_TIME", type="string,19,char", notNull=true)    private String commentCreateTime;    //6.评论发表时间

    public String toString()
    {
        return Jsons.toString(this);
    }

    public long getQuestionId()
    {
        return questionId;
    }

    public void setQuestionId(long questionId)
    {
        this.questionId = questionId;
    }

    public long getCommentId()
    {
        return commentId;
    }

    public void setCommentId(long commentId)
    {
        this.commentId = commentId;
    }

    public String getCommentContent()
    {
        return commentContent;
    }

    public void setCommentContent(String commentContent)
    {
        this.commentContent = commentContent;
    }

    public long getCommentUserId()
    {
        return commentUserId;
    }

    public void setCommentUserId(long commentUserId)
    {
        this.commentUserId = commentUserId;
    }

    public int getCommentGoodNum()
    {
        return commentGoodNum;
    }

    public void setCommentGoodNum(int commentGoodNum)
    {
        this.commentGoodNum = commentGoodNum;
    }

    public String getCommentCreateTime()
    {
        return commentCreateTime;
    }

    public void setCommentCreateTime(String commentCreateTime)
    {
        this.commentCreateTime = commentCreateTime;
    }

}
